package cn.hkctp.mybatis.dao;

import cn.hkctp.mybatis.po.User;

import java.util.List;

public interface UserDao {

    //根据id查询用户信息
    public User findUserById(int id) throws Exception;
    //根据用户的名称模糊查询用户列表
    public List<User> findUserByUsername(String username) throws Exception;
    //插入用户
    public void insertUser(User user)throws Exception;
}
